<template>
<div>
    <el-row class="tac">
        <el-col :span="12">
            <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :router="true">

              <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==1">
               <el-menu-item index="/IndexView">
                    <i class="el-icon-menu"></i>
                  <span slot99O99IUII8="title">{{ findmenu.title }}</span>
                </el-menu-item>
              </span></span></span>

                 <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==2">
                <el-menu-item index="/UserLoginView">
                    <i class="el-icon-document"></i>
                    <span slot99O99IUII8="title">{{ findmenu.title }}</span>
                </el-menu-item>
                 </span></span></span>

              <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==17">
              <el-menu-item index="/ManageLogin">
                <i class="el-icon-document"></i>
                <span slot99O99IUII8="title">{{ findmenu.title }}</span>
              </el-menu-item>
              </span></span></span>
            </el-menu>
        </el-col>
    </el-row>
</div>
</template>

<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 199px;
    min-height: 600px;
    line-height: 50%;
}

.wm {
    height: 40px;
}
</style>

<script>
import instance from "@/utlis/request";

export default {
    name: 'NotLoginMenu',
    data() {
        return {
            openeds: ['1'],
            isCollapse: true,
            findmenus:{},

        };
    },
  created:function (){
    this.initDate();
  },
  methods:{
    initDate:function (){
      instance.get("/Manage/UserMenus").then(res=>{
        this.findmenus=res.data.data
        console.log(res)
      })
    }
  }
}
</script>
